// pages/minsu1/minsu1.js

var app = getApp() 
Page({
  data: {

    active: 0,
    date: [],

    viewDetail: {}
  },



  onLoad: function (options) {
  },
  // tab切换
  productClick() {
    this.setData({
      active: 0
    })
  },
  detailClick() {
    this.setData({
      active: 1
    })
  },
  ratingClick() {
    this.setData({
      active: 2
    })
  },
  modalcnt:function(){  
    wx.showModal({  
        title: '提示',  
        content: '这是一个模态弹窗',  
        success: function(res) {  
            if (res.confirm) {  
            console.log('用户点击确定')  
            } else if (res.cancel) {  
            console.log('用户点击取消')  
            }  
        }  
    })  
}  ,
// 二维码识别
clickImg(){
  wx.previewImage({
    urls: ['https://636c-cloud1-3g27h0fqe967f01e-1311565349.tcb.qcloud.la/minsu/shishan.png?sign=8c97cf2a1b4613756bbca871eb0e98d3&t=1656440644']
  })
  },

})